package by.semerikov.dao;

public class DAOFactory {
	private static DAOFactory instance;

	private DAOFactory() {
	}

	public static DAOFactory getInstance() {
		if (instance == null) {
			instance = new DAOFactory();
		}
		return instance;
	}

	public IPersonDAO getPersonDAO() {
		return new PersonDAO();
	}

	public ICarDAO getCarDAO() {
		return new CarDAO();
	}

	public IProposalDAO getProposalDAO() {
		return new ProposalDAO();
	}

	public IUserSessionDAO getUserSessionDAO() {
		return new UserSessionDAO();
	}

}
